package model.micro
{
	import model.micro.projectiles.Projectile;
	
	/**
	 * An object with a bounding box.
	 */
	public class SolidObject
	{
		protected var bounding_box:BoundingBox;
		
		/**
		 * Create a new solid object.
		 * @param	x
		 * @param	y
		 * @param	width
		 * @param	height
		 */
		public function SolidObject(x:Number, y:Number, width:Number, height:Number)
		{
			bounding_box = new BoundingBox(x, y, width, height);
			bounding_box.owner = this;
		}
		
		/**
		 * @return	the bounding box for this object.
		 */
		public function getBoundingBox():BoundingBox
		{
			return bounding_box;
		}
		
		/**
		 * Called when hit by a projectile.
		 * @param	projectile	The hitting projectile.
		 */
		public function onHit(projectile:Projectile):void
		{
		
		}
	}

}